<div id="bckmain">
    
    <ul class="nav nav-pills nav-stacked">
        <li class="active"><a href=""><p align="left">Status Booking</p></a></li>

    </ul>

    <table class="table table-hover">
        <thead>
            <tr>
                <th>No</th>
                <th>flight</th>
                <th>from</th>
                <th>to</th>
                <th>Status</th>
                <th>Action</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($rows as $booking): ?>
                <tr>
                    <td><?php echo $i ?></td>
                    <td><img src="<?php echo base_url() ?>image/icon_<?php echo strtolower($booking->airlines_name)?>_2.jpg"/> <?php echo $booking->flight_number ?></td>
                    <td><?php echo get_airport($booking->from) . " ($booking->from)" ?></td>
                    <td><?php echo get_airport($booking->to) . " ($booking->to)" ?></td>
                    <td>
            <center>
                <?php echo get_status($booking->status); ?> &nbsp;&nbsp; 
            </center>    
            </td>
            <td>
                <a href="<?php echo base_url() ?>costumers/show_book/<?php echo $booking->id ?>"><img src="<?php echo base_url() ?>img/detail.png"></a>&nbsp;&nbsp;
            </td>
            </tr>
            <?php $i++; ?>
        <?php endforeach ?>
        </tbody>

    </table>

</div>